package com.frank.thread.web;

import com.frank.thread.service.ThreadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 小石潭记
 * @date 2020/10/10 17:29
 * @Description: ${todo}
 */
@Controller
@RequestMapping("/thread")
public class ThreadController {

    @Autowired
    private ThreadService threadService;

    @GetMapping("/query")
    @ResponseBody
    public String getData(){
        return threadService.getAsyncResult();
    }
}
